package com.sun.common;

/**
 * 定义返回值枚举
 */
public enum ResponseEnum {
    SUCCESS(200, "成功"),
    ERROR(404, "错误"),
    EXCEPTION(600, "异常"),
    FAILE(500, "失败");

    private Integer code;

    private String message;

    ResponseEnum(Integer code, String mesage) {
        this.code = code;
        this.message = mesage;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
